import iconfontJson from '@/assets/font/iconfont/iconfont.json';
import * as AntdIcons from '@ant-design/icons';
import { loadSvgIcons } from '@/icons/index.ts';
const allKeys = Object.keys(AntdIcons);
const iconKeys = allKeys.filter(
    (key) =>
        ![
            'createFromIconfontCN',
            'default',
            'IconProvider',
            'setTwoToneColor',
            'getTwoToneColor',
        ].includes(key),
);
const iconfontData = iconfontJson.glyphs.map(
    (iconfont: any) => `${iconfontJson.css_prefix_text}${iconfont.font_class}`,
);
const svgIcons = loadSvgIcons();
const icons = [...svgIcons, ...iconfontData, ...iconKeys];

export default icons;
